/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class SmartDumbbell {
    static categoryCode = '010070003';

    static categoryName = '智能哑铃';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return SmartDumbbell.categoryCode;
    }

    get categoryName() {
        return SmartDumbbell.categoryName;
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'pdNCa8tw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRealtimeCount(params) {
        return command({
            method: 'getRealtimeCount',
            methodId: 'p0croELr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRealtimeTime(params) {
        return command({
            method: 'getRealtimeTime',
            methodId: 'pz93zI8A',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getStatus(params) {
        return command({
            method: 'getStatus',
            methodId: 'ptRSF2iP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'phEqjJom',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTargetCount(params) {
        return command({
            method: 'getTargetCount',
            methodId: 'pkpD9z4C',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTargetTime(params) {
        return command({
            method: 'getTargetTime',
            methodId: 'p3deKcBU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setContinue(params) {
        return command({
            method: 'setContinue',
            methodId: 'pZgunZDn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setFinish(params) {
        return command({
            method: 'setFinish',
            methodId: 'pGoxIL3M',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'p1vZRSrK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setPause(params) {
        return command({
            method: 'setPause',
            methodId: 'pUPQlde9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStart(params) {
        return command({
            method: 'setStart',
            methodId: 'ppAXPr7E',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3fAOI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTargetCount(params) {
        return command({
            method: 'setTargetCount',
            methodId: 'pgh0HT95',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTargetTime(params) {
        return command({
            method: 'setTargetTime',
            methodId: 'pDrhTNml',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default SmartDumbbell;
